home *** CD-ROM | disk | FTP | other *** search
/ Pro Intralink 3.1 / Pro Intralink v3.1.iso / dsrc / templates / unix / u_wc_cshrc.tpl < prev    next >
Encoding:
Text File  |  2001-11-27  |  1.5 KB  |  61 lines

  1. // 03-Apr-00  TWH   $$1  Made into PTC.Setup template
  2. // 02-Oct-00  TWH   $$2  modify TNS_ADMIN
  3. //
  4. #!/bin/csh -f
  5. #Windchill .cshrc
  6.  
  7. setenv WTDB_HOME __WTDB_HOME__
  8. setenv ORACLE_HOME __ORACLE_HOME__
  9. // TNS_ADMIN chg from WTDB_HOME to ORACLE_HOME/network/admin 840415
  10. setenv TNS_ADMIN $ORACLE_HOME/network/admin
  11.  
  12. if ($?ORACLE_SID == 0) then
  13.    setenv ORACLE_SID __ORACLE_SID__
  14. endif
  15.  
  16. setenv NLS_LANG "AMERICAN_AMERICA.WE8ISO8859P1"
  17.  
  18. unsetenv TWO_TASK
  19. setenv ORACLE_TERM   vt100
  20. setenv ORACLE_SERVER ""
  21.  
  22. setenv TCL_LIBRARY   ${WTDB_HOME}/tools/lib/tcl
  23. setenv TCL_AUTO_PATH ${WTDB_HOME}/dbs/Tcl
  24.  
  25. # The following removes trailing colon from PATH and adds ORACLE_HOME/bin
  26. echo $PATH | grep $ORACLE_HOME/bin > /dev/null
  27. if ($status) then
  28.     setenv PATH `echo $PATH | sed 's/\(.*\):$/\1/'`:$ORACLE_HOME/bin
  29. endif
  30.  
  31. # The following adds WTDB_HOME dependent directories
  32. echo $PATH | grep $WTDB_HOME/tools/bin > /dev/null
  33. if ($status) then
  34.     setenv PATH `echo $PATH | sed 's/\(.*\):$/\1/'`:$WTDB_HOME/tools/bin
  35. endif
  36.  
  37. # Make sure the local bin directory is in the path
  38. echo $PATH | grep /usr/local/bin > /dev/null
  39. if ($status) then
  40.     setenv PATH `echo $PATH | sed 's/\(.*\):$/\1/'`:/usr/local/bin
  41. endif
  42.  
  43. echo $PATH | grep /usr/sbin > /dev/null
  44. if ($status) then
  45.     setenv PATH `echo $PATH | sed 's/\(.*\):$/\1/'`:/usr/sbin
  46. endif
  47.  
  48. if ($?LD_LIBRARY_PATH) then
  49.    setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$ORACLE_HOME/lib:$WTDB_HOME/tools/lib
  50. else
  51.    setenv LD_LIBRARY_PATH $ORACLE_HOME/lib:$WTDB_HOME/tools/lib
  52. endif
  53.  
  54. unset noclobber
  55.  
  56. unalias rm
  57. unalias mv
  58. unalias cp
  59. unalias ls
  60. unalias ps
  61.